package page

func  Page(originPage,originPerpage uint32) (int,int) {
	var page uint32=1;
	var limit ,offset uint32;
	if originPage>0 {
		page=originPage
	}
	if originPerpage>0 {
		limit=originPerpage
	}else{
		limit=18
	}
	offset=(page-1)*limit
	return int(limit),int(offset)
}
